#include "junix.h"

int
main (int argc, char **argv)
{

  struct stat st;
  if (fstat (STDIN_FILENO, &st) == -1)
    err_sys ("stat");

  print_stat (&st);
  fprintf(stdout,"\n");

  if (fstat (STDOUT_FILENO, &st) == -1)
    err_sys ("stat");

  print_stat (&st);
  fprintf(stdout,"\n");

  if (fstat (STDERR_FILENO, &st) == -1)
    err_sys ("stat");

  print_stat (&st);
  fprintf(stdout,"\n");

  return 0;
}
